package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 施工分部分项划分对象 erp_branch_sub_type
 *
 * @author wutao
 * @date 2024-06-10
 */
@TableName("erp_branch_sub_type")
@ApiModel(value = "erp_branch_sub_type对象", description = "施工分部分项划分")
@Data
public class BranchSubTypeEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 施工分部分项划分主键id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 分部工程
     */
    @ApiModelProperty("分部工程")
    @TableField("parent_branch_name")
    @Excel(name = "分部工程")
    private String parentBranchName;

    /**
     * 子分部工程
     */
    @ApiModelProperty("子分部工程")
    @TableField("son_branch_name")
    @Excel(name = "子分部工程")
    private String sonBranchName;

    /**
     * 分项工程
     */
    @ApiModelProperty("分项工程")
    @TableField("sub_project")
    @Excel(name = "分项工程")
    private String subProject;

    /**
     * 分项编码
     */
    @ApiModelProperty("分项编码")
    @TableField("sub_project_code")
    @Excel(name = "分项编码")
    private String subProjectCode;

    /**
     * 删除标识
     */
    private String delFlag;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setParentBranchName(String parentBranchName) {
        this.parentBranchName = parentBranchName;
    }

    public String getParentBranchName() {
        return parentBranchName;
    }

    public void setSonBranchName(String sonBranchName) {
        this.sonBranchName = sonBranchName;
    }

    public String getSonBranchName() {
        return sonBranchName;
    }

    public void setSubProject(String subProject) {
        this.subProject = subProject;
    }

    public String getSubProject() {
        return subProject;
    }

    public void setSubProjectCode(String subProjectCode) {
        this.subProjectCode = subProjectCode;
    }

    public String getSubProjectCode() {
        return subProjectCode;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("parentBranchName", getParentBranchName())
                .append("sonBranchName", getSonBranchName())
                .append("subProject", getSubProject())
                .append("subProjectCode", getSubProjectCode())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
